package com.telit.android.dto;

import com.telit.common.entity.AppTask;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.List;


@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "OtherTaskDto", description = "非热点巡航巡护任务")
public class OtherTaskDto {

    @ApiModelProperty(value = "任务")
    private AppTask appTask;

    @ApiModelProperty(value = "经度")
    private String longitude;

    @ApiModelProperty(value = "纬度")
    private String latitude;

    @ApiModelProperty(value = "行政区划代码")
    private String districtCode;

    @ApiModelProperty(value = "任务接收人ID集合")
    @NotEmpty(message = "任务接收人ID集合不能为空")
    private List<Long> recieverIdList;

    @ApiModelProperty(value = "管理员ID")
    private Long userId;

    @ApiModelProperty(value = "事件ID")
    private Long eventId;

    @ApiModelProperty(value = "子任务类型，1火情任务，2事件任务,3指定任务")
    @NotBlank(message = "子任务类型不能为空")
    private String eventType;

    @ApiModelProperty(value = "任务类型名称")
    @NotBlank(message = "任务类型不能为空")
    private String typeName;

    @ApiModelProperty(value = "详细地址")
    private String detailAddress;

}
